import request from './request'


export const destinationAdd = (data = {}) => {
    return request.post('/destination/add', data)
}

export const destinationList = (params = {}) => {
    return request.get('/destination/list', params)
}

export const destinationDetail = (params = {}) => {
    return request.get('/destination/detail', params)
}

export const destinationEdit = (data = {}) => {
    return request.post('/destination/edit', data)
}

export const houseRecommend = (params = {}) => {
    return request.post('/house/recommend', { params })
}

export const villaTypes = (params = {}) => {
    return request.get('/villa/types', params)
}

export const houseCity = (params = {}) => {
    return request.get('/house/city', params)
}
export const discoverList = (params = {}) => {
    return request.get('/discover/list', {params})
}
export const userGetSmsCode = (params = {}) => {
    return request.post('/user/getSmsCode', params)
}
export const userLoginBySmsCode = (params = {}) => {
    return request.post('/user/loginBySmsCode', params)
}
export const houseList = (params = {}) => {
    return request.post('/house/list', params)
}
//房源详情
export const houseDetail = (params = {}) => {
    return request.post('/house/detail', params)
}
// 周边环境
export const houseAround = (params = {}) => {
    return request.post('/house/around', params)
}
// 小区介绍
export const houseIntroduction = (params = {}) => {
    return request.post('/house/introduction', params)
}
// 足迹
export const browseAdd = (params = {}) => {
    return request.post('/browse/add', params)
}
export const houseComment = (params = {}) => {
    return request.post('/house/comment', params)
}
// 日期列表
export const dateAll = (params = {}) => {
    return request.get('/date/all', params)
}
//提交需求
export const demandAdd = (params = {}) => {
    return request.post('/demand/add', params)
}
//订单列表
export const orderLists = (params = {}) => {
    return request.get('/order/list', params)
}
//浏览列表
export const browseList = (params = {}) => {
    return request.post('/browse/list', params)
}
//删除足迹
export const browseDel = (params = {}) => {
    return request.post('/browse/del', params)
}
//添加订单
export const orderAdd = (params = {}) => {
    return request.post('/order/add', params)
}